const mongoose = require("mongoose");
const Schema = mongoose.Schema;

// 定义新闻模型
const newsSchema = new Schema({
  author: String, 
  title: String,
  html: String, 
  url: String,
  created: { type: Date, default: Date.now } // 创建时间
});

module.exports = mongoose.model("News", newsSchema);